package cn.waxcc.controller;

import cn.waxcc.pojo.BsDoctor;
import cn.waxcc.service.BsDoctorService;
import cn.waxcc.service.impl.BsDoctorServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 功能说明
 *
 * @author HZ
 * @date 2023-04-06 10:47:10
 */
@RestController
@RequestMapping("/doc")
public class BsDoctorController {
    @Autowired
    private BsDoctorService bsDoctorService;
    @RequestMapping("/all")
    public List<BsDoctor> queryalldoc(){
        List<BsDoctor> queryalldoc = bsDoctorService.queryalldoc();
        return queryalldoc;
    }
    @RequestMapping("id")
    public List<BsDoctor> ByIdInfo(int id){
        List<BsDoctor> bsDoctors = bsDoctorService.ByIdInfo(id);
        return bsDoctors;
    }
}